

	*Create Folder to store log files
		capture log close
		cd ".../replication_package/log_files"

		*Extracts the current date, formatted as "YYYY-MM-DD"
		local curr_date: di %tdCY-N-D daily(c(current_date), "DMY")
			di "`curr_date'"
		
		*If a directory does not yet exist for the current date, makes a directory titled "As of `current_date'"
		capture mkdir "As of `curr_date'"

	*Create folder to store output	
		*Create folder to output data
		cd ".../output"
		
		*Extracts the current date, formatted as "YYYY-MM-DD"
		local curr_date: di %tdCY-N-D daily(c(current_date), "DMY")
			di "`curr_date'"
		
		*If a directory does not yet exist for the current date, makes a directory titled "As of `current_date'"
		capture mkdir "As of `curr_date'"

	*Set Globals
		global programs ".../replication_package/"
		global data = ".../data"
		global output = ".../output/As of `curr_date'"
		global log_loc = ".../replication_package/log_files/As of `curr_date'/"
		
	*Adjust the path of packages
		sysdir set PLUS "${programs}/ado"
			adopath ++ PLUS
			adopath ++ BASE
		cap adopath - OLDPLACE

	*Set Options
		ieboilstart, version(17.0)